Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Ruby
1) Active Record
2) Array
3) CGI
4) Class
5) Collections
6) Database
7) Date
8) Design Patterns
9) Development
10) File Directory
11) GUI
12) Hash
13) Language Basics
14) Method
15) Network
16) Number
17) Rails
18) Range
19) Reflection
20) Statement
21) String
22) Threads
23) Time
24) Tk
25) Unit Test
26) Windows Platform
27) XML
Date
1) Add and subtract six months using the and methods
2) Add week to Date and Time
3) Advent calendar
4) Calendar forms
5) Compare Time and DateTime
6) Convert a date to gm time, local time
7) Convert local (Eastern) time to Pacific time
8) Convert second to date
9) Converting Between Time and DateTime Objects
10) Counting the Days Since an Arbitrary Date
11) Create a year based on the Julian day with the jd class method
12) Create DateTime object with new method
13) Date parse
14) Date parse(2907)
15) Date strptime
16) Date strptime with format %A, %B %d, %Y
17) Date strptime with format %d%m%y
18) Date strptime with format %m%d%Y
19) DateTime civil
20) DateTime offset
21) DateTime parse
22) DateTime strptime with format %m-%d-%Y %H
23) DateTime strptime with format %m-%d-%Y %I
24) Doing Date Arithmetic
25) Doing DateTime Arithmetic
26) Find the Gregorian day with gregorian
27) Get the Julian day (days from January 1, 4713 B C , starting from 0) with the jd instance method
28) In England, 2 Sep 1752 was immediately followed by 14 Sep 1752
29) In Italy, 4 Oct 1582 was immediately followed by 15 Oct 1582
30) Leap year day
31) Local offset
32) Minus DateTime by day
33) Minus one DateTime from another
34) Move DateTime
35) Next finds the next day but does not change date in-place
36) Offset a date
37) Parsing Times and Dates
38) Printing a Date
39) Remaining days
40) Require date
41) Subtract 61 days from a date
42) The astronomical Julian day is available via ajd
43) The current date and time
44) The Date Class
45) The modified Julian day (days since November 17, 1858) with mjd
46) Time zero for the date library
47) To see the difference between Julian and Gregorian dates (there is a difference of more than 10 days), find the Julian day with the j
48) Try different formats
49) Use expression substitution to show the date in a user-specified format
50) Using the upto method, add the same amount of days back, showing the dates as you progress along
51) Whats the next day
52) With Dates downto method, count down five days, displaying each date as you go (this makes in-place changes to the date)
53) With the today class method, you can create a date based on todays date